/**
 * Created by Administrator on 2016/3/16.
 */
var promise = Promise.resolve('hello');

promise.then(function(result){
    console.log(result);
});


var promise2 = Promise.reject('error');


promise2.then(null,function(err){
    console.log(err);
});